package com.yanqu.road.entity.enums.activity.pawnshop;

/**
 * 通知类型
 */
public enum ePawnshopNotifyType {

	RepairFinish("修复完成", 1),
	FakeFinish("伪造完成", 2),
	HockRedemption("典当赎回", 3),
	HockGiveUp("典当放弃", 4),
	;

	private String name;
	private int intValue;

	ePawnshopNotifyType(String name, int value) {
		this.intValue = value;
		this.name = name;
	}

	public int getValue() {
		return intValue;
	}

	public String getName() {
		return name;
	}

	public static ePawnshopNotifyType forValue(int value) {
		for (ePawnshopNotifyType type : ePawnshopNotifyType.values()) {
			if (type.intValue == value) {
				return type;
			}
		}
		return null;
	}
}
